package com.zzyweb.rentalcarsys.service;

import com.zzyweb.rentalcarsys.entity.RentalOrder;
import com.zzyweb.rentalcarsys.utils.PageResult;

import java.util.List;

public interface OrderService {
    RentalOrder addOrder(RentalOrder order);
    void modifyOrder(RentalOrder order);
    PageResult<RentalOrder> getOrdersByConditions(Long currentPage,Long pageSize, RentalOrder order);
    void deleteOrder(String orderId);
    PageResult<RentalOrder> getOrdersByUserId(String userId, Long currentPage, Long pageSize);
    void cancelOrder(RentalOrder order);
    RentalOrder returnCar(RentalOrder order);
    PageResult<RentalOrder> getAllOrders(Long currentPage, Long pageSize);
    RentalOrder reviewOrder(RentalOrder order);
}
